<div class="detail-product">
<div class="product-info">	
	<div class="title"><h3><?php echo $data['name'];?></h3></div>	
  <table width="393" height="97" border="0" bordercolor="#999999">
  <tr>
    <td width="152" height="21"><label>Mã sản phẩm:</label>&nbsp;<strong><?php echo $data['code'];?> </td>
    <td width="231"><p><label>Ngày cập nhật:</label>&nbsp;<strong><?php echo  date('m-d-Y',$data->create_time)?></strong></p></td>
  </tr>
  <tr>
    <td height="21"><p><label>Xuất xứ:</label>&nbsp;<strong><?php echo $data['origin'];?></strong></p></td>
    <td> <p><label>Nhãn hiệu:</label>&nbsp;<strong><?php $data->brandId?$data->brand->name:"";?></strong></p></td>
  </tr>
  <tr>
    <td height="21"><p><label>Số chân:</label>&nbsp;<strong><?php echo $data['numSocket'];?></strong></p></td>
    <td><p><label>Đơn Giá:</label>&nbsp;<strong><?php echo $data['priceUnit'];?></strong></p></td>
  </tr>
  <tr>
    <td height="21"><p class="price"><label>Giá bán:</label>&nbsp;<span><?php echo ShopHelpers::priceFormat($data['price']);?></span></p></td>
    <td>&nbsp;</td>
  </tr> 
</table>     
	<p class="bg-title"><strong style="font-size: 15px;margin: 10px 0;">Thông tin sản phẩm</strong></p>
	<div><?php echo $data['content_1'];?></div>        
		<?php if(Yii::app()->user->hasFlash('yiishop')):?>
		<div class="shopflash">
			<?php echo Yii::app()->user->getFlash('yiishop');?>
		</div>
		<?php endif;?>
	<div class="product-options"> 
	<?php $this->renderPartial('addToCart', array(
			'model' => $data)); ?>
	</div>
	<div class="social-like">
		<?php $this->widget('application.widgets.SocialLikeBox.SocialLikeBox');?>
	</div>
</div>
<div class="image-product">
	<div class="product-image">
	<div id="gallery_01"> 

	        <img id="img_01" src="<?php echo $data->avatar?(Yii::app()->baseUrl . '/' . $data->avatar->url):'' ?>"/>	    	
	</div>

	</div>
	
</div>
</div>

<div class="more-detail">
   
<script>
	
	$(function() {
	$( "#tabs" ).tabs();
	//
	//$("#img_01").bind("click", function(e) {  
	//var ez =   $('#img_01').data('elevateZoom');	
	//console.log(ez);
	//$.fancybox(ez.getGalleryList());
	//return false;  
	//});
	$("#img_01").bind("click", function(e) {  
		    $(this).width(1000);
	});
	});
	//$("#img_01").elevateZoom({gallery:'gallery_01', cursor: 'pointer', galleryActiveClass: 'active'}); 
  
  </script>
<div id="tabs">
  <ul>
    <li><a href="#tabs-1">Thông tin </a></li>
    <li><a href="#tabs-2">Sản phẩm đề nghị</a></li>
    <li><a href="#tabs-3">Sản phẩm cùng chức năng</a></li>
  </ul>
  <div id="tabs-1">
    <?php echo $data['content'];?>
  </div>
  <div id="tabs-2">
  	<?php $this->widget('application.widgets.Products3.products',array('_catID'=>$data['id'],'_content'=>'1'))?>
  </div>
  <div id="tabs-3">
  	<?php $this->widget('application.widgets.Products3.products',array('_catID'=>$data['id'],'_content'=>'2'))?>
  </div>
</div>
</div>

